﻿@model IEnumerable<WeberTimeTracker.Models.InvoicedHours>
				 
@{
    ViewBag.Title = "InvoiceView";
		Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Invoice View</h2>

<table>
    <tr>
        <th>
            Client Name
        </th>
        <th>
            Project
        </th>
        <th>
            Hours
        </th>
        <th>
            Rate
        </th>
				<th>
						Pay
				</th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.HiddenFor(modelItem => item.Client_ID)
            @Html.DisplayFor(modelItem => item.Client_Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Project_Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Hours)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Rate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Pay)
            @Html.HiddenFor(modelItem => item.Invoiced)
        </td>
        <td>
            @Html.ActionLink("Mark Invoiced", "Edit", new { clientid = item.Client_ID, projectname = item.Project_Name })  
        </td>
    </tr>
}

</table>

<div>
    @Html.ActionLink("Back to Client Projects", "Index")
</div>